using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.WebApiWrite.DTO
{
    /// <summary>
    /// 产品信息DTO（用于新增操作）
    /// </summary>
    public class ProductDTO
    {
        /// <summary>
        /// 产品ID（修改时必填，新增时为null）
        /// </summary>
        public int? ProductId { get; set; }

        /// <summary>
        /// 货品编号（后端自动生成，前端无需传值，格式：HPDH+4位随机数）
        /// </summary>
        public string? ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string SpecificationModel { get; set; }

        /// <summary>
        /// 单位（如：件、箱、个、台等）
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 进货单价
        /// </summary>
        public string InboundUnitPrice { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public string CurrentInventory { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        public int WarehouseId { get; set; }

        /// <summary>
        /// 数据状态（1:草稿 2:已提交）
        /// </summary>
        public int DataStatus { get; set; } = 2;

        /// <summary>
        /// 操作人名称
        /// </summary>
        public string OperatorName { get; set; }

    }
}

